﻿using UnityEngine;

namespace Yoozoo.Gameplay.RTS
{
    public class MarchContext
    {
        /// <summary>
        ///     摄像机高度
        /// </summary>
        public float CameraHeight;

        /// <summary>
        ///     缓存摄像机位置
        /// </summary>
        public Vector3 CameraPosition;

        /// <summary>
        ///     摄像机位置变化
        /// </summary>
        public bool CameraPositionChanged;

        /// <summary>
        ///     沙盘LOD等级
        /// </summary>
        public int LodLevel;

        /// <summary>
        ///     沙盘LOD百分比
        /// </summary>
        public float LodPercent;

        /// <summary>
        ///     Hud Lod0的缩放
        /// </summary>
        public float Lod0Scale;

        /// <summary>
        ///     Hud Lod1的缩放
        /// </summary>
        public float Lod1Scale;

        /// <summary>
        ///     通过摄像机高度计算出的LOD Level， 只影响到小兵
        /// </summary>
        public int MarchLodLevel = 1;
        // MarchLodLevel是不是改变了1
        public bool needUpdateLod = true;
        // 是否显示小兵
        public bool showMarchSquare;
    }
}
